﻿<%@ Assembly Name="TrafficTechFormsHistory, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1686bce18e824521" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ManagersSubmittedFormsCountUserControl.ascx.cs" Inherits="TrafficTechFormsHistory.ManagersSubmittedFormsCount.ManagersSubmittedFormsCountUserControl" %>
<SharePoint:CssRegistration ID="CssRegistration1" Name="/Style Library/TrafficTech/CSS/gvstyle.css"
    runat="server" After="corev4.css" />
                  
<asp:UpdatePanel runat="server" ID="updGv">
    <ContentTemplate>
        <p align="right"><asp:LinkButton runat="server" Text="<img src='/_layouts/images/TrafficTechFormsHistory/arrow_refresh.png' border='0' />" ID="btnRefresh" /></p>
        <asp:UpdateProgress ID="upMain1" runat="server" AssociatedUpdatePanelID="updGv">
            <ProgressTemplate>
                <center>
                    <img src="/_layouts/images/loading.gif" alt="Loading..." />Loading...</center>
            </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:GridView ID="gv" runat="server" Width="100%" CellPadding="0" GridLines="None" 
            CssClass="mGrid" CellSpacing="0" PagerStyle-CssClass="pgr"
            AlternatingRowStyle-CssClass="alt" RowStyle-CssClass="mGridRowStyle" SelectedRowStyle-CssClass="SelectedRowStyle"
            AutoGenerateColumns="false" EditRowStyle-CssClass="EditRowStyle" 
            onrowcreated="gv_RowCreated" >
            <PagerStyle CssClass="pgr" />
           <RowStyle CssClass="mGridRowStyle"  />
            <AlternatingRowStyle CssClass="alt" />
            <Columns>
            <asp:BoundField DataField="Department" HeaderText="Forms" />
                <asp:TemplateField HeaderText="All Forms">
                    <ItemTemplate>
                         <a href='<%# Eval("lnk")%>'>
                            <%# Eval("AllForms").ToString()%></a>
                    </ItemTemplate><ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                

                <asp:TemplateField HeaderText="<img src='/_layouts/images/CNSINF16.GIF' /> In Progress">
                <ItemTemplate><%#Eval("Inprogress")%></ItemTemplate><ItemStyle HorizontalAlign="Center" /></asp:TemplateField>

                <asp:TemplateField HeaderText="<img src='/_layouts/images/kpinormal-0.gif' /> Approved">
                <ItemTemplate><%#Eval("Approved")%></ItemTemplate><ItemStyle HorizontalAlign="Center" /></asp:TemplateField>

                <asp:TemplateField HeaderText="<img src='/_layouts/images/kpinormal-2.gif' /> Rejected">
                <ItemTemplate><%#Eval("Rejected")%></ItemTemplate><ItemStyle HorizontalAlign="Center" /> </asp:TemplateField>

                <asp:TemplateField HeaderText="<img src='/_layouts/images/kpinormal-1.gif' size/> Failed To Start">
                <ItemTemplate><%#Eval("FailedToStart")%></ItemTemplate><ItemStyle HorizontalAlign="Center" /></asp:TemplateField>

            </Columns>
            <SelectedRowStyle CssClass="SelectedRowStyle" />
        </asp:GridView>
        <asp:Label runat="server" ID="lblErr"></asp:Label>
    </ContentTemplate>
</asp:UpdatePanel>

